home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / lu62 / port / th0.h < prev    next >
C/C++ Source or Header  |  1996-07-10  |  3KB  |  64 lines

  1. struct th0 {              /* transmission header               */
  2.     unsigned fid:4;      /* format identifier                 */
  3.     unsigned sgm:2;      /* segmenting: 0 - middle, 1 - last, */
  4.                          /* 2 - first, 3 - only               */
  5.     unsigned dgr:1;      /* datagram indicator                */
  6.     unsigned efi:1;      /* expedited flow indicator          */
  7.   union {
  8.    struct {
  9.     unsigned c:1;        /* circularity flag                  */
  10.     unsigned tp:2;       /* transmission priority:            *
  11.                           * 0 - low                           *
  12.                           * 1 - middle                        *
  13.                           * 2 - high                          */
  14.     unsigned llc:2;      /* logical link control mode:        *
  15.                           * 0 - connectionless mode           *
  16.                           * 1 - n/a                           *
  17.                           * 2 - connection mode               *
  18.                           * 3 - connectionless responded mode */
  19.     unsigned rs1:3;      /* reserved                  */
  20.     unsigned rs2:8;      /* reserved                  */
  21.     unsigned rs3:8;      /* reserved                  */
  22.           } lan;
  23.    struct {
  24.     unsigned c:1;        /* circularity flag                  */
  25.     unsigned rs1:2;      /* reserved                          */
  26.     unsigned path:2;     /* flags for PATH                    *
  27.                           * 2 - fields from HSCB              *
  28.                           * 3 - header is ready               *
  29.     unsigned tn:2;       /* network type                      *
  30.                           * 1 - SNA                           *
  31.                           * 2 - ROUTE                         *
  32.                           * 3 - LAN                           */
  33.     unsigned rs2:1;      /* reserved                  */
  34.     unsigned vrn:3;      /* virtual route number      */
  35.     unsigned tp:2;       /* transmisson priority      */
  36.     unsigned ern:3;      /* explicite route number    */
  37.     unsigned sess:8;     /* session number            */
  38.           } rout;
  39.         } t13;
  40.  union {
  41.     struct {
  42.     unsigned daf:16;     /* destination address field */
  43.     unsigned oaf:16;     /* origin address field      */
  44.     unsigned snf:16;     /* sequense number field     */
  45.     unsigned dcf:16;     /* data count field          */
  46.            } stand;
  47.     struct {
  48.     struct hscb *hscb;
  49.     struct nau *nau;
  50.     short  rsv1;
  51.            } conbl;
  52.         } t411;
  53.  };
  54. #define FID8       0x8   /* format 8 - the only TH format supported */
  55. #define TPLOW      0     /* transmission priority (low)             */
  56. #define TPMIDDLE   1     /* transmission priority (middle)          */
  57. #define TPHIGH     2     /* transmission priority (high)            */
  58. #define LLCCL      0     /* llc connectionless mode                 */
  59. #define LLCC       1     /* llc connectin mode                      */
  60. #define LLCCLR     3     /* llc connectionless responded mode       */
  61. #define NET_SNA    1     /* network type = SNA                      */
  62. #define NET_ROUTE  2     /* network type = ROUTE                    */
  63. #define NET_LAN    3     /* network type = LAN                      */
  64.